package com.cmas.platform.domain;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import com.aidex.common.core.domain.BasePlusEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.aidex.common.annotation.Excel;

/**
 * 通知公告用户阅读表对象 notification_user
 * @author su
 * @email 1218819874@qq.com
 * @date 2024-05-19
 */
@Data
public class NotificationUser extends BasePlusEntity
{
    private static final long serialVersionUID = 1L;

    /** 通知公告ID */
    @Excel(name = "通知公告ID")
    @NotBlank(message = "通知公告ID不允许为空")
    @LogField
    @FieldRemark(name = "通知公告ID",field = "notificationId")
    private String notificationId;

    /** 系统用户id */
    @Excel(name = "系统用户id")
    @NotBlank(message = "系统用户id不允许为空")
    @LogField
    @FieldRemark(name = "系统用户id",field = "userId")
    private String userId;

    /** 是否已读（0未读，1已读），仅在制定通知接收人时使用 */
    @Excel(name = "是否已读")
    @LogField
    @FieldRemark(name = "是否已读",field = "isRead")
    private String isRead;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("notificationId", getNotificationId())
            .append("userId", getUserId())
            .append("isRead", getIsRead())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
